package top.continew.admin.controller.system;

import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// TestController.java
@RestController
@RequestMapping("/api/test")
public class TestController {

    @GetMapping("/public")
    public void publicApi() {
        System.out.println("公开接口");
    }

    @SaCheckPermission("system:test:demo")
    @GetMapping("/secure")
    public void secureApi() {
        System.out.println("受保护接口");
    }
}